home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / AOCE / Development Tools / Sample Code / Digital Signatures / Digital Signature Demo / Source ƒ / DemoSignedObject.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-11  |  988 b   |  43 lines  |  [TEXT/KAHL]

  1. /*
  2.  * DemoSignedObject.h
  3.  * This illustrates how Digital Signatures may be attached
  4.  * to a random object.
  5.  */
  6. #define _H_DemoSignedObject
  7. #include "CSignedObject.h"
  8. class            CDataFile;
  9.  
  10.  
  11. struct DemoSignedObject : CSignedObject {
  12. public:
  13.     unsigned short            itsCheckBoxValue;
  14.     unsigned short            itsRadioButtonValue;
  15.     Str255                    itsCommentaryText;
  16.  
  17. private:
  18.         CDataFile                *itsSignatureDataFile;
  19.  
  20. public:
  21.         void                    IDemoSignedObject(void);
  22.         unsigned short            GetCheckBoxValues(void);
  23.         void                    SetCheckBoxValues(
  24.             unsigned short            newCheckBoxValues
  25.         );
  26.         unsigned short            GetRadioButtonValue(void);
  27.         void                    SetRadioButtonValue(
  28.             unsigned short            newRadioButtonValue
  29.         );
  30.         void                    GetCommentaryText(
  31.             StringPtr                resultText
  32.         );
  33.         void                    SetCommentaryText(
  34.             const StringPtr            newText
  35.         );
  36.         Boolean                    SignThisObject(void);
  37.         Boolean                    VerifyThisObject(void);
  38.         void                    SaveObjectSignature(void);
  39.         void                    ReadObjectSignature(void);
  40.         void                    ProcessObject(void);
  41. };
  42.  
  43.